<?php

require('routeros_api.class.php');

$API = new routeros_api();

//$API->debug = true;

if ($API->connect('192.168.88.1', 'admin', '')) {

//$API->write('/tool/user-manager/user/getall');
$API->comm("/ip/hotspot/user/add", array(
          "name"     => "nueng",
          "password" => "pass",
          "email" => "nueng@gmail.com",
          "limit-bytes-total"  => "333",
         "limit-uptime"  => "00:00:00",
));
 //  $API->read(false);
 //  $ARRAY = $API->parse_response($READ);

  // echo "<pre>";print_r($ARRAY);echo "</pre>";

   $API->disconnect();

}

?>

